home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 2207 / 2207.xpi / components / coolpreviews.js
Text File  |  2010-01-28  |  1KB  |  42 lines

  1. var nsISupports=Components.interfaces.nsISupports;
  2. var COOLPREVIEWS_CLASS_ID=Components.ID("{2d7da437-2912-45be-88f7-0107ccdfddb1}");
  3. var COOLPREVIEWS_CLASS_NAME="CoolPreviews";
  4. var COOLPREVIEWS_CONTRACT_ID="@cooliris.com/CoolPreviews;1";
  5. function CoolPreviewsService(){
  6. this.uninstallPageDisplayed=false;
  7. this.wrappedJSObject=this;
  8. }
  9. CoolPreviewsService.prototype={QueryInterface:function(_1){
  10. if(!_1.equals(Components.interfaces.nsISupports)){
  11. throw Components.results.NS_ERROR_NO_INTERFACE;
  12. }
  13. return this;
  14. }};
  15. var CoolPreviewsServiceFactory={createInstance:function(_2,_3){
  16. if(_2!=null){
  17. throw Components.results.NS_ERROR_NO_AGGREGATION;
  18. }
  19. return (new CoolPreviewsService()).QueryInterface(_3);
  20. }};
  21. var CoolPreviewsServiceModule={registerSelf:function(_4,_5,_6,_7){
  22. _4=_4.QueryInterface(Components.interfaces.nsIComponentRegistrar);
  23. _4.registerFactoryLocation(COOLPREVIEWS_CLASS_ID,COOLPREVIEWS_CLASS_NAME,COOLPREVIEWS_CONTRACT_ID,_5,_6,_7);
  24. },unregisterSelf:function(_8,_9,_a){
  25. _8=_8.QueryInterface(Components.interfaces.nsIComponentRegistrar);
  26. _8.unregisterFactoryLocation(COOLPREVIEWS_CLASS_ID,_9);
  27. },getClassObject:function(_b,_c,_d){
  28. if(!_d.equals(Components.interfaces.nsIFactory)){
  29. throw Components.results.NS_ERROR_NOT_IMPLEMENTED;
  30. }
  31. if(_c.equals(COOLPREVIEWS_CLASS_ID)){
  32. return CoolPreviewsServiceFactory;
  33. }
  34. throw Components.results.NS_ERROR_NO_INTERFACE;
  35. },canUnload:function(_e){
  36. return true;
  37. }};
  38. function NSGetModule(_f,_10){
  39. return CoolPreviewsServiceModule;
  40. }
  41.  
  42.